/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package meg.ejb.inter;

import javax.ejb.Local;
import meg.dto.PlayerException;
import meg.ejb.entity.Player;

/**
 *
 * @author radek
 */
@Local
public interface PlayerInfo {
    public void login(String login, String password) throws PlayerException;
    public void logout();
    public boolean isPlayerLogged();

    /**
     *
     * @return
     * @throws IllegalStateException
     */
    public Player getLoggedPlayer();
}
